'use strict';

module.exports = (app) => {
    const {DataTypes} = app.Sequelize;
    const About = app.model.define('about', {
        id: { 
            type: DataTypes.UUID,
            defaultValue: app.Sequelize.UUIDV4, 
            primaryKey: true,
            notNull: true,
            comment: 'ID'
        },
        bannerTitle:{type: DataTypes.STRING(50),notNull:true,comment: 'banner'},
        bannerDetail:{type: DataTypes.TEXT,notNull:true,comment: 'bannerDeteil'},
        bannnerImage:{type: DataTypes.STRING(200),notNull:true,comment: 'bannnerImage'},

        audioEnvDetail:{type: DataTypes.STRING(200),notNull:true,comment: 'audioEnvDetail'},
        envID:{ 
            type: DataTypes.UUID,
            defaultValue: app.Sequelize.UUIDV4, 
            notNull: true,
            comment: 'ID'
        },
        deviceDetail:{type: DataTypes.STRING(200),notNull:true,comment: 'audioEnvDetail'},
        devID:{ 
            type: DataTypes.UUID,
            defaultValue: app.Sequelize.UUIDV4, 
            notNull: true,
            comment: 'ID'
        },
    },
  );
  About.sync()
  return About;
};